package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Team;
import org.hxyjs.page.PageInfo;

public interface TeamService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Team> getAllTeams() throws Exception;

    /**
     * 删除学生
     * @param tno
     * @return
     * @throws Exception
     */
    public DTO<Team> deleteTeamByTno(String tno) throws Exception;
    /**
     *  修改学生
     * @param team
     * @return
     */
    public DTO<Team> updateTeamByTno(Team team)  throws Exception;
    /**
     *  增加学生
     * @param team
     * @return
     */
    public DTO<Team> addTeam(Team team)  throws Exception;

    /**
     * 根据主键查询学生
     * @param tno
     * @return
     * @throws Exception
     */
    public DTO<Team> getTeamByTno(String tno) throws Exception;

    /**
     *分页查询
     * @param pageInfo
     * @return
     * @throws Exception
     */
     public DTO<Team> getTeamByPage(PageInfo pageInfo, String cacheId) throws Exception;

     public DTO<Team> getTeamByPage(PageInfo pageInfo) throws Exception;



}
